<spawn> element 

The <spawn> element declares a spawn task, indicating the creation of a child context and invocation of a URL in that child context. If the URL names a WML card or deck, the card is displayed, and the URL becomes the basis for a new history stack in the child context.

syntax

The <spawn> element creates a new browser context, and invokes the "/child" URL in this new context. The child context initializes with the variable "Name" which evaluates to "Joe". When the child context exits, the onexit intrinsic event occurs, resulting in a <go> task to the "/continue" URL.

Attributes

 
href Specifies the destination URL. The URL of the card to display. 
onexit The onexit event occurs when the child context is exited with an exit task. 
sendreferer true | false

Specifies whether the device should include the deck URL in the URL request. Specifying sendreferer="true" causes the device to set the HTTP_REFERER header to the relative URL of the requesting deck. If you want to restrict access to trusted services, decks that request specified URLs must set this option to TRUE

method get | post

Specifies the HTTP submission method. Specifying method="post" causes the UP.Link Server to transcode variable data to the character set specified by the HTTP headers defined in your application. You should perform this transcoding if non-ASCII characters (specifically UTF-8) may exist in the data being passed. If you do not specify the method attribute but do specify the postfield nested element, the device automatically uses the post method. 

accept-charset  Specifies the character encodings that your application can handle. The device uses this attribute to transcode data specified by the postfield element. The UP.Link Server assumes UTF-8 as the default encoding (of which US-ASCII is a subset), so WML services in the United States, Canada, or Australia do not need to use this attribute. You can also omit this attribute if you specify your character set(s) in the HTTP response header. Note that the accept-charset attribute overrides any character encodings you specify in the HTTP header. 

The syntax for this attribute is a comma- or space-delimited list of IANA character sets. For example, accept-charset="UTF-8, US-ASCII, ISO-8859-1"


 NOTE     The spawn element may contain one or more postfield elements. These elements specify information to be submitted to the origin server during the request.